Roll back part of previous change. This should be a local time.
authorrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 24 Jul 2013 02:31:23 +0000 (02:31 +0000)
committerrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 24 Jul 2013 02:31:23 +0000 (02:31 +0000)
Tested with a variety of TZ values and seems OK now.

gpsbabel/trackfilter.cc

index 2cc862ce2abfb38a7e3e3cceeef0485db679911f..b66cab2b980c298914e636de2d6fd85db6dad2aa 100644 (file)
@@ -387,7 +387,7 @@ trackfilter_split_init_rte_name(route_head *track, const QDateTime dt)
   char buff[128], tbuff[128];
   struct tm tm;
 
-  time_t time = dt.toUTC().toTime_t();
+  time_t time = dt.toTime_t();
   tm = *localtime(&time);
 
   (opt_interval != 0) ?